Skip to content

fix(builtins): register crypto and semver providers - #192

Merged
sspaink merged 1 commit into
open-policy-agent:mainfrom
sspaink:feat/register-crypto-semver-builtins
Aug 10, 2026
Merged

fix(builtins): register crypto and semver providers#192
sspaink merged 1 commit into
open-policy-agent:mainfrom
sspaink:feat/register-crypto-semver-builtins

Conversation

@sspaink

@sspaink sspaink commented Aug 10, 2026

Copy link
Copy Markdown
Member

The BuiltinProvider entries for opa-builtins-crypto and opa-builtins-semver
were commented out in their META-INF/services files, so ServiceLoader never
found them. Both are documented as supported in opa-builtins/README.md, but
consumers could not call any of their builtins — eval --capabilities-current
reported 113 builtins and now reports 123.

Only the registration was broken; the implementations pass every compliance
fixture as soon as they are reachable, so this also removes their ten entries
from known-missing-builtins.txt (74 → 64).

json, net and regex are still commented out — registering all five at once
fails 32 compliance cases (json 16, net 13, regex 3), so those need follow-ups.
The list header now records that split.

The BuiltinProvider entries for opa-builtins-crypto and
opa-builtins-semver were commented out in their META-INF/services
files, so ServiceLoader never discovered them. Both modules were
documented as supported in opa-builtins/README.md, but consumers could
not actually call any of their builtins — `eval --capabilities-current`
reported 113 builtins where it now reports 123.

Registering these two needs no parity fixes: the compliance suite is
green with their ten entries removed from known-missing-builtins.txt.

The json, net and regex providers are still commented out. Registering
all five at once fails 32 compliance cases (json 16, net 13, regex 3)
and exhausts the default test heap, so those are left for follow-ups
and the list header now records the split.

Signed-off-by: Sebastian Spaink <sebastianspaink@gmail.com>
@sspaink
sspaink requested a review from a team as a code owner August 10, 2026 17:27
@sspaink
sspaink merged commit 64d93f1 into open-policy-agent:main Aug 10, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant